package com.martian.pojo.form;

import com.martian.pojo.entity.MovieStatistic;
import io.swagger.models.auth.In;
import lombok.Data;

/**
 * @author martian
 * @version V1.0.0
 * @Description
 * @date 2023-05-17 18:26
 */
@Data
public class DeepCrossingInputForm {
    private Integer userId;
    private Integer movieId;
    private String movieGenre1;
    private String movieGenre2;
    private String movieGenre3;
    private Integer movieRatingCount;
    private double movieAvgRating;
    private double movieRatingStddev;
    private String userGenre1;
    private String userGenre2;
    private String userGenre3;
    private String userGenre4;
    private String userGenre5;
    private Integer userRatingCount;
    private double userAvgRating;
    private double userRatingStddev;
    private Integer userRatedMovie1;
    private Integer releaseYear;
    public void setMovieFeatures(MovieStatistic movieStatistic){
        this.setMovieId(movieStatistic.getMovieId());
        this.setReleaseYear(movieStatistic.getMovieReleasedYear());
        this.setMovieGenre1(movieStatistic.getMovieGenre1());
        this.setMovieGenre2(movieStatistic.getMovieGenre2());
        this.setMovieGenre3(movieStatistic.getMovieGenre3());
        this.setMovieAvgRating(movieStatistic.getMovieAvgRating());
        this.setMovieRatingCount(movieStatistic.getMovieRatingCount());
        this.setMovieRatingStddev(movieStatistic.getMovieRatingStddev());
    }
}
